<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td width="111" align="right"><span class="color_red">*</span>项目名称：</td>
		<td colspan="5">
			<x:out select="$xmlData/data/proposal/zh_title" />
		</td>
	</tr>
	<tr>
		
		<td align="right"><span class="color_red">*</span>申报日期：</td>
		<td colspan="2">
			<x:out select="$xmlData/data/proposal/submit_date" />
		</td>
		<td align="right"><span class="color_red">*</span>项目实施地点：</td>
		<td colspan="2">
		
		<x:out select="$xmlData/data/proposal/impl_area_name" />
		</td>
	</tr>
	<tr>
	   <c:set var="need_approve" ><x:out select="$xmlData/data/proposal/need_approve" /></c:set>
	
		<c:if test="${need_approve==1 }">
			<td nowrap   align="right"><span class="color_red">*</span>推荐单位：</td>
			<td nowrap   colspan="2">
				<x:out select="$xmlData/data/proposal/recomend_org_name" />
			</td>
		</c:if>
		 
		<td align="right"><span class="color_red">*</span>技术领域：</td>
		<td colspan="${5-need_approve*3}">
			<x:out select="$xmlData/data/proposal/applicant_subject_name" /> 
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>开始日期：</td>
		<td colspan="2">
		<x:out select="$xmlData/data/proposal/start_date" />
	
			
		</td>
		<td align="right"><span class="color_red">*</span>结束日期：</td>
		<td colspan="2">
			<x:out select="$xmlData/data/proposal/end_date" />
			
		</td>
		
	</tr>
	
	<tr>
		<td align="right"><span class="color_red">*</span>学科名称1：</td>
		<td colspan="2">
			<x:out select="$xmlData/data/proposal/subject1_name" />
			
		</td>
		<td align="right" nowrap>学科名称2：</td>
		<td colspan="2">
			<x:out select="$xmlData/data/proposal/subject2_name" />
		</td>
	</tr>
	
	<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td colspan="1">
			<x:out select="$xmlData/data/proposal/contact_psn_cname" />
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td >
			<x:out select="$xmlData/data/proposal/contact_psn_tel" />
		</td>
		<td  align="right"><span class="color_red">*</span>手机：</td>
		<td >
			<x:out select="$xmlData/data/proposal/contact_psn_mobile" />
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目简介：</td>
		<td colspan="5">
			<x:out select="$xmlData/data/proposal/brief" />
		</td>
	</tr>
</table>

<script type="text/javascript">
$(function(){
	$("#impl_area,#register_area").css("float","left");
	$("#subject1,#subject2").css("float","left").focus(function(){
		subjectControl(this);
	});
	$("#basicInfo tr:even").addClass("li_1");
    $("#basicInfo tr:odd").addClass("li_2");
});

/**
 * 选择树设置隐藏域值 public.js中原函数不适用
 */
function initTreeValue(treeId, treeNode) {
	if (!(treeNode && treeNode.level>0)) {
		scmWarn($("#"+treeId).attr("label")+messageTip.researchAreaInvalidDisciplineCode);
		if(treeNode.level==0){
			$("#"+treeId).val("");
			$("#"+treeId).parents("td").find("[name$='"+treeId+"_code'],[id$='"+treeId+"_code']").val("");
			$("#"+treeId).parents("td").find("[name$='"+treeId+"_name'],[id$='"+treeId+"_name']").val("");
		}
		return false;
	}
	var oldval = $("#"+treeId).parents("td").find("[name$='"+treeId+"_code'],[id$='"+treeId+"_code']").val();
	var oldname = $("#"+treeId).parents("td").find("[name$='"+treeId+"_name'],[id$='"+treeId+"_name']").val();
	$("#"+treeId).parents("td").find("[name$='"+treeId+"_code'],[id$='"+treeId+"_code']").val(oldval+","+treeNode.id);
	$("#"+treeId).parents("td").find("[name$='"+treeId+"_name'],[id$='"+treeId+"_name']").val(oldname+","+treeNode.name.substring(treeNode.name.indexOf(".")+1));
}


</script>